"""
生产环境配置
"""

CONFIG = {
    # 主机配置 - 生产环境地址
    "hosts": {
        "host": "https://ls.shuwen.com/web/luoshu-rongmei",
        "account_host": "https://ls.shuwen.com/web/uic",
        "account_host2": "https://ls.shuwen.com/web/mgc-account/entitle",
        "message_host": "https://api.shuwen.com/access",
        "audit_host": "https://ls.shuwen.com/audit-service",
        "data_host": "https://ls.shuwen.com/web/luoshu-rongmei-data",
        "media_host": "https://api.shuwen.com/web/mediax-busi-platform",
        "deliver_host": "https://ls.shuwen.com/web/deliver",
        "spread_host": "https://ls.shuwen.com/web/spreadroom",
        "download_host": "https://ls.shuwen.com/web",
        "onethreefive_host": "https://www.135editor.com",
        "host_ip": ""  # 生产环境不使用IP直连
    },

    # 账号配置 - 生产环境账号（需要手动配置）
    "accounts": {
        "admin": {
            "auth_key": "prod-admin@company.com",
            "password": "ENCRYPTED_PASSWORD",  # 生产环境密码需要特殊处理
            "user_id": "prod_admin_user_id",
            "user_name": "生产管理员"
        }
    },

    # API配置 - 生产环境最严格配置
    "api": {
        "timeout": 120,  # 最长超时时间
        "retry_count": 5,
        "retry_delay": 3,
        "max_connections": 30,  # 限制连接数
        "rate_limit": 100  # 每分钟最多100次请求
    },

    # 安全配置
    "security": {
        "enable_ssl_verify": True,
        "enable_request_log": True,
        "enable_response_log": False,  # 生产环境不记录响应内容
        "sensitive_fields": ["password", "token", "auth_key"]  # 敏感字段
    },

    # 测试配置 - 生产环境特殊配置
    "test": {
        "wait_time": 10,
        "max_wait_time": 60,
        "screenshot_on_failure": False,  # 生产环境不截图
        "save_response": False,  # 生产环境不保存响应
        "readonly_mode": True  # 只读模式，不修改数据
    }
}